package com.lsq.tucao.express.service;

import com.lsq.tucao.express.bean.po.HeartDetail;
import com.lsq.tucao.express.response.JsonResult;

public interface HeartExpressService {

    /**
     * @author lsq
     * @description 添加心灵鸡汤
     * @param heartDetail 实体类
     * @return com.lsq.tucao.express.response.JsonResult
     * @create 2021/4/18 23:35
     */
    JsonResult addHeart(HeartDetail heartDetail);

//    /**
//     * @author lsq
//     * @description 给鸡汤点赞
//     * @param heartId 鸡汤id
//     * @return com.lsq.tucao.express.response.JsonResult
//     * @create 2021/4/21 0:34
//     */
//    JsonResult likeHeart(Long heartId);

    /**
     * @author lsq
     * @description 分页获取心灵鸡汤数据
     * @param current 页码
     * @param size 每页条数
     * @param verify 是否通过审核 0:未审核 1:通过审核 2:没通过审核
     * @param getVerified 获取已审核的数据
     * @return com.lsq.tucao.express.response.JsonResult
     * @create 2021/4/18 23:36
     */
    JsonResult pageHeart(Integer current,Integer size,Integer verify,Boolean getVerified);

    /**
     * @author lsq
     * @description 通过id获取心灵鸡汤数据
     * @param heartId id
     * @return com.lsq.tucao.express.response.JsonResult
     * @create 2021/4/18 23:37
     */
    JsonResult getHeartById(Long heartId);

    /**
     * @author lsq
     * @description
     * @param heartId id
     * @param verify true：审核通过；false：审核未通过
     * @return com.lsq.tucao.express.response.JsonResult
     * @create 2021/4/16 12:36
     */
    JsonResult verifyHeart(Long heartId,Boolean verify);

    /**
     * @author htt
     * @description 按输入的鸡汤内容查找心灵鸡汤数据
     * @param heartContent 检索条件的内容
     * @return com.lsq.tucao.express.response.JsonResult
     * @create 2021/4/16 12:36
     */
    JsonResult searchHeartByContent(Integer current,Integer size,String heartContent);

    /**
     * @author htt
     * @description 按输入的用户名查找心灵鸡汤数据
     * @param userName 用户名
     * @return com.lsq.tucao.express.response.JsonResult
     * @create 2021/4/16 12:36
     */
    JsonResult searchHeartByUsername(Integer current,Integer size,String userName);

    /**
     * @author htt
     * @description 按条件进行排序tips-[p0数据
     * @param sortBy 排序条件
     * @return com.lsq.tucao.express.response.JsonResult
     */
    JsonResult sortHeartBy(Integer current,Integer size,String sortBy);

}
